package com.leo.springbootmultithreadbasic.communication.threadlocal;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Leo
 * @version V1.0
 */
public class MyRunnableA implements Runnable {

    private static final Logger logger = LoggerFactory.getLogger(MyRunnableA.class);

    @Override
    public void run() {
        for (int i = 0; i < 5; i++) {

//            logger.info("MyRunnableA get value = {}", Storage.THREAD_LOCAL_STORAGE.get());


            Storage.THREAD_LOCAL_STORAGE.set("MyRunnableA " + i);
        }

    }
}
